<template>
  <div>
    <div class="nav">
      <div class="nav-left">
        <ul>
          <li>
            <input type="radio" name="a" />
            <span>常规模式</span>
          </li>
          <li>
            <input type="radio" name="a" />
            <span>边境突围模式</span>
          </li>
        </ul>
        <ul>
          <li>
            <input type="radio" name="b" />
            <span>全部</span>
          </li>
          <li>
            <input type="radio" name="b" />
            <span>攻击</span>
          </li>
          <li>
            <input type="radio" name="b" />
            <span>法术</span>
          </li>
          <li>
            <input type="radio" name="b" />
            <span>防御</span>
          </li>
          <li>
            <input type="radio" name="b" />
            <span>移动</span>
          </li>
          <li>
            <input type="radio" name="b" />
            <span>打野</span>
          </li>
          <li>
            <input type="radio" name="b" />
            <span>游走</span>
          </li>
        </ul>
      </div>
      <div class="search-form">
        <input type="text" placeholder="请输入您要搜索的道具名" />
        <img
          class="search"
          src="https://game.gtimg.cn/images/yxzj/web201605/page/vl_search_icon.png"
          alt=""
        />
      </div>
    </div>
    <div>
      <ul class="hero" v-for="i in 117" :key="i">
        <li>
          <img
            src="https://game.gtimg.cn/images/yxzj/img201606/itemimg/1138.jpg"
            alt=""
          />
          <div>铁剑</div>
        </li>
      </ul>
    </div>
  </div>
</template>

<script>
export default {};
</script>

<style lang="scss" scoped>
.nav {
  display: flex;
  margin: 40px 30px;
  //border: 1px solid red;
  border-radius: 8px;
  overflow: hidden;
  .nav-left {
    display: flex;
    flex-direction: column;
    padding: 5px 0;
    ul {
      display: flex;
      padding: 15px 0;
      li {
        padding: 0 15px;
        color: gray;
      }
    }
  }
  .search-form {
    position: relative;
    margin-top: 20px;
    margin-left: 250px;
    margin-bottom: 45px;
    display: inline-block;
    border: 1px solid #ddd;
    input {
      border: none;
      background-color: rgba(0, 0, 0, 0);
      padding: 15px 10px;
      width: 280px;
      outline: none;
    }
  }
  .search {
    width: 35px;
    position: absolute;
    right: 10px;
    top: 7px;
    border-left: 1px solid gray;
    padding-left: 8px;
  }
}
.hero {
  display: inline-block;
  margin-left: 35px;
  margin-bottom: 35px;
  //border: 1px solid red;
  img {
    border-top-left-radius: 10px;
    border-bottom-right-radius: 10px;
    border: 2px solid #2c88e2;
    width: 80px;
  }
  div {
    text-align: center;
  }
}
</style>
